#-------------------------------------------------------------------------------
# Name:        sign-in view
# Description:
#              "Sign In" window title
#              Welcome Message
#              Username label -> allows user text input
#              Username entry
#              Password label
#              Password entry -> allows user text input
#              Remember me radio button -> toggle on/off just for show
#              Sign in button -> students go to Student Courses View,
#                                teachers go to Teacher Course View,
#                                proctors go to Proctor Student List View
#                  Sign in button is currently tripled for convenience to testing.
#-------------------------------------------------------------------------------
#!/usr/bin/env python


def create():
    signInFrame = tk.Frame()

    userNameLabel = tk.Label(signInFrame, text="Username").pack()
    userNameText = tk.Text(signInFrame, height=1).pack()

    passwordLabel = tk.Label(signInFrame, text="Password").pack()
    passwordText = tk.Text(signInFrame, height=1).pack()

    studentSignInButton = tk.Button(
                        signInFrame,
                        text="Sign in (Student)",
                        command=screenmanager.switch_to_student_course_view).pack()
    teacherSignInButton = tk.Button(
                        signInFrame,
                        text="Sign in (Teacher)",
                        command=screenmanager.switch_to_teacher_course_view).pack()
    proctorSignInButton = tk.Button(
                        signInFrame,
                        text="Sign in (Proctor)",
                        command=screenmanager.switch_to_proctor_student_list_view).pack()

    signInFrame.pack()

    return signInFrame
